<!DOCTYPE html>
<html lang="en">
<head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link rel="icon" type="image/x-ico" href="../img/nuvoton.ico" />
    <script type="text/javascript" src="js/nuvoton.js"></script>
    <script type="text/javascript" src="../jquery/js/jquery.min.js"></script>
    <script type="text/javascript" src="../jquery/js/jquery-ui-custom.min.js"></script>
    <script type="text/javascript" src="js/nuvoton.js"></script>
    <title>2.4G模块设置</title>

    <script language="javascript">
        function button_process()
        {
            $("#Button1").bind("click",
                    function() {
                        if(confirm("你确认要改变通道号"))
                        {
                            $.get("nrf2401_config.ncgi?NRF_CH=set", {NNRF_CH:$("#nrf_ch").val()},function(data) {
                                $("#nrf_ch").val(data.NRF_CH);
                            })
                        }
                        else
                        {

                        }
                    });
        }
        $(document).ready(function(){

            $.get("nrf2401_config.ncgi?doAction=read", function(data) {
                $("#nrf_ch").val(data.NRF_CH);
            });
            button_process();
        });
    </script>
	<style>
	   html
		{
			/*background-color:slategray;*/
			width: 80%;
			height: 100%;
			color: yellow;
		}
		#page_title1
        {
            font-size: 150%;
            //background-color:red;
        }
	</style>
</head>
<body>
    <p id="page_title1">2.4G模块参数设置</p>
    <p>
        通道：<input type="text"  id="nrf_ch" onkeypress="return ValidateSpecialCharacter();"/>（范围0~128）
    </p>
    <button id="Button1">确定</button>
</body>
</html>